﻿<%--
 *  File:    ActionSummary.jsp
 *  @Author: ChinaLiu
 *  Date:    2009-10-10

 *  Copyright (C) 2000 - 2009 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>
<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.OvalLabel" %>
<%@ page import="com.oval.util.OvalCustomMessage" %>
<%@ page import="com.oval.util.OvalCustomColumn" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  String privilegeCode = "H0251";
  String strTableName = "v_actionsummary";
  String strModuleName = "CRM";
  HashMap userinfo = new HashMap();
  userinfo = (HashMap)session.getAttribute("userinfo");
  Integer neworgid=new Integer(-1);
  if(userinfo.get("orgid")!=null)
  neworgid = (Integer)userinfo.get("orgid");
  String contextPath = request.getContextPath();
  
%>



<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@include file="/inc/Print.inc"%>
<%@ include file="/inc/FrmDefault.inc"%>
<%@ include file="/inc/LocationDefault.inc" %>
<html>
<head>
<title>ActionSummary</title>
<PageFlow:CheckPageFlow pageName="p_actionsummary"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
<script type="text/javascript" src="<%=contextPath %>/js/opal2/mootools.js"></script>
<%@ include file="/inc/SummaryDivision.inc" %>
<script>
function clickProd(id,num)
{
  document.actionsummaryform.chooseactionid.value = id;
  document.actionsummaryform.chooseindexnum.value = num;
}
function page_summary(actionvalue,orderbyname)
{
  var editform = summaryPrepare(actionsummaryform,actionvalue,orderbyname);
  editform.action = "ActionSummary.jsp?<%= OvalTools.randomURL() %>&selectopt=all";  
  editform.target = "_self";
  isRunning = true;
  editform.submit();
}

function openNeedSubmit(){
    /*
    var newneedsku=document.actionsummaryform.newneedsku.checked;    
    var newneedcategory=document.actionsummaryform.newneedcategory.checked;    
    var newneedbrand=document.actionsummaryform.newneedbrand.checked;  
    var newneedcpt=document.actionsummaryform.newneedcpt.checked;
    var newneedcust=document.actionsummaryform.newneedcust.checked;
    var newneeddoc=document.actionsummaryform.newneeddoc.checked;
	var op = document.actionsummaryform.newfeedbacktype.value;		
	if((newneeddoc || newneedcust || newneedcpt || newneedbrand || newneedcategory || newneedsku) && op==1){	
		document.actionsummaryform.newneedsubmit.disabled=false;
	}else{
		document.actionsummaryform.newneedsubmit.disabled=true;
	}
	*/
}

function openAll(t){
	if(t.checked)
	{	
		document.actionsummaryform.newneedsku.disabled=false;
		document.actionsummaryform.newneedskugroup.disabled=false;
		document.actionsummaryform.newfeedbacktype.disabled=false;
		/*
		document.actionsummaryform.newneedcategory.disabled=false;
		document.actionsummaryform.newneedbrand.disabled=false;
		document.actionsummaryform.newneedcpt.disabled=false;
		document.actionsummaryform.newneedcustomer.disabled=false;
		document.actionsummaryform.newneeddoctor.disabled=false;
		document.actionsummaryform.newfeedbacktype.disabled=false;
		*/
	}else{
		document.actionsummaryform.newneedsku.checked=false;
		document.actionsummaryform.newneedskugroup.checked=false;
		/*
		document.actionsummaryform.newneedbrand.checked=false;
		document.actionsummaryform.newneedcpt.checked=false;
		document.actionsummaryform.newneeddoctor.checked=false;
		document.actionsummaryform.newneedcustomer.checked=false;
		document.actionsummaryform.newneedcategory.checked=false;
		*/
		document.actionsummaryform.newneedsku.disabled=true;
		document.actionsummaryform.newneedskugroup.disabled=true;
		/*
		document.actionsummaryform.newneedbrand.disabled=true;
		document.actionsummaryform.newneedcpt.disabled=true;
		document.actionsummaryform.newneeddoctor.disabled=true;
		document.actionsummaryform.newneedcustomer.disabled=true;
		document.actionsummaryform.newneedcategory.disabled=true;
		document.actionsummaryform.newfeedbacktype.disabled=true;
		document.actionsummaryform.newfeedbacktype.value="-1";
		document.actionsummaryform.newfeedbacktype.disabled=true;
		document.actionsummaryform.newsourcetype.value="-1";
		document.actionsummaryform.newsourcetype.disabled=true;
		document.actionsummaryform.newrelatedactionid.value="-1";
		document.actionsummaryform.newrelatedactionid.disabled=true;
		*/
		document.actionsummaryform.newsourcetype.value="-1";
		document.actionsummaryform.newsourcetype.disabled=true;
	}
}
function openBll(t){
	if(t.checked)
	{	
		document.actionsummaryform.newneedreq.value="Y";
	}else{
		document.actionsummaryform.newneedreq.value="N";
	}
}
function openActionsource(){
var op = document.actionsummaryform.newfeedbacktype.value;
//document.actionsummaryform.newrelatedactionid.disabled=true;
//document.actionsummaryform.newrelatedactionid.value="-1";
     if((op==4 || op==7))
    {
	  document.actionsummaryform.newsourcetype.disabled=false;
	  document.actionsummaryform.newrelatedactionid.value="-1";
	  document.actionsummaryform.newrelatedactionid.disabled=true;
    }else{
		document.actionsummaryform.newsourcetype.value="-1";
		document.actionsummaryform.newsourcetype.disabled=true;
		document.actionsummaryform.newrelatedactionid.value="-1";
		document.actionsummaryform.newrelatedactionid.disabled=true;
	 if(op==8)
		{
		  document.actionsummaryform.newrelatedactionid.disabled=false;
		}
    }
}

function page_add(){
  var newactioncode = document.actionsummaryform.newactioncode.value;
  if(newactioncode=="" || newactioncode==-1)
  {
    alert("<%= message.getMessageDesc("MUST_INPUT_FIRST",label.getLabelName("L_actionguidecode"))%>");
    return;
  }
  
    var newactionname = document.actionsummaryform.newactionname.value;
  if(newactionname=="" || newactionname==-1)
  {
    alert("<%= message.getMessageDesc("MUST_INPUT_FIRST",label.getLabelName("L_actionguidename"))%>");
    return;
  }
	
	if(document.actionsummaryform.newneedfeedback.checked)
	{
		    var newfeedbacktype = document.actionsummaryform.newfeedbacktype.value;
 			 if(newfeedbacktype=="" || newfeedbacktype==-1)
  			{
   				 alert("<%= message.getMessageDesc("MUST_SELECT_FIRST",label.getLabelName("L_feedbackdatatype"))%>");
    				return;
  			}
	}

	var op = document.actionsummaryform.newfeedbacktype.value;
	if(op==4  || op==7)
	{
	 	var newsourcetype = document.actionsummaryform.newsourcetype.value;
		  if(newsourcetype=="" || newsourcetype==-1)
 		 {
    		alert("<%= message.getMessageDesc("MUST_SELECT_FIRST",label.getLabelName("L_sourcetype"))%>");
    		return;
  		}
	}
	if(op==8)
	{
	 	var newrelatedactionid = document.actionsummaryform.newrelatedactionid.value;
		  if(newrelatedactionid=="" || newrelatedactionid==-1)
 		 {
    		alert("<%= message.getMessageDesc("MUST_SELECT_FIRST",label.getLabelName("L_RelatedProcessAction"))%>");
    		return;
  		}
	}
 var frm = document.actionsummaryform;
   frm.actionname.value = "add";
   frm.target = "_self";
   isRunning = true;
   frm.submit();
}

function page_delete(){
	if(document.actionsummaryform.chooseactionid!=null&&document.actionsummaryform.chooseactionid.value!="")
	{
		document.actionsummaryform.newvisitprocessactionid.value = document.actionsummaryform.chooseactionid.value
		  var flag = confirm('<%=message.getMessageDesc("ARE_YOU_SURE_DEL")%>');
  			if(!flag)
    		return;
    		 var frm = document.actionsummaryform;
   frm.actionname.value = "delete";
   frm.target = "_self";
   isRunning = true;
   frm.submit();
    		
	}

}


/////////////////////
function editMode(obj,index,name,id) {
        var checked = false;
        if ($(name + index) == null) {
            var c = Trim(obj.innerText);
			if("Y"== c){
			 checked = true;
			}
            var t = new Element('input', {
                'type':'checkbox',
                'checked':checked,
                'styles':{
                        'border':'0'
                         },
                'id':name + index,
                'name':name,
                'events':{
                    'blur':function() {
                        saveData(this,id,c);
                    },
                    'keydown':function() {
                        if (event.keyCode == 13) {
                            saveData(this,id,c);
                        }
                    }
                }
            });
            obj.innerHTML = '';
            t.inject(obj);
            selectText(t);
        }
    }
    

    function saveData(obj,id,c) {
	var p = obj.parentNode;
		var objvalue = "";
		if(obj.checked){
		    objvalue = "Y";
		}else {
		    objvalue = "N";
		}
		p.innerHTML = objvalue;
		 /*
		 alert(p.innerHTML);
		 alert("obj.name="+ obj.name);
		 alert("encodeURI(objvalue)="+ encodeURI(objvalue));
		 alert("visitprocessactionid="+ id);
		 */
        var req = new Request({
            'url':'<%=contextPath%>/Dispatcher',
            'method':'get',
            'data':'pagename=p_actionsummary&actionname=save&columnname=' + obj.name + '&columnvalue='+ encodeURI(objvalue) + '&visitprocessactionid=' + id
        });
        req.send(); 
    }

    //选中文本框中的字符       function editModeText(obj,index,name,id) {
        if ($(name + index) == null) {
            var c = Trim(obj.innerText);
            var t = new Element('input', {
                'type':'text',
                'value':c,
                'styles':{
                        'width':'150px'
                         },
                'id':name + index,
                'name':name,
                'events':{
                    'blur':function() {
                        saveDataText(this,id,c);
                    },
                    'keydown':function() {
                        if (event.keyCode == 13) {
                            saveDataText(this,id,c);
                        }
                    }
                }
            });
           
            obj.innerHTML = '';
            t.inject(obj);
            selectText(t);
        }
    }
    
    function saveDataText(obj,id,c) {
        var p = obj.parentNode;
        if(Trim(obj.value) == ""){
          // alert("不能为空！");
           p.innerHTML =  "&nbsp;"+c;
           return;
        }
        if(parseFloat(obj.value) == parseFloat(c)){
           p.innerHTML = obj.value;
		   return;
        }
        p.innerHTML = obj.value;
        var req = new Request({
            'url':'<%=contextPath%>/Dispatcher',
            'method':'get',
            'data':'pagename=p_actionsummary&actionname=save&columnname=' + obj.name + '&columnvalue='+ encodeURI(obj.value) + '&visitprocessactionid=' + id
        });
        req.send(); 
        //location.reload() ;
    }

    function selectText(obj) {
        var range = obj.createTextRange();
        range.moveStart("character", 0);
        range.select();
    }


/////////////////////

</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 <form name="actionsummaryform" method="post" action="<%=contextPath%>/Dispatcher">
      <input type="hidden" name="pagename" value="p_actionsummary">
      	<input type="hidden" name="actionname">      	
      	 <%@ include file="/inc/PageLocation.inc" %> 
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
    <td>
      <table width="100%" border="0" cellspacing="0">
        <tr>
          <td class="summary_top" colspan="2" ></td>
        </tr>
	<%@ include file="/inc/SummarySearch.inc" %>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellpadding="0" width="100%">

        <tr class="deepblue-left">
          <td width="3%" class="title_center">&nbsp;</td>
          <td class="title_center"><%= label.getLabelName("L_actionguidecode") %></td>
          <td class="title_center"><%= label.getLabelName("L_actionguidename") %></td>
          <td class="title_center"><%= label.getLabelName("L_Description") %></td>
          <td class="title_center"><%= label.getLabelName("L_Required") %></td>
          <td class="title_center"><%= label.getLabelName("L_needfeedback ") %></td>
          <td class="title_center"><%= label.getLabelName("L_feedbackdatatype") %></td>
          <td class="title_center"><%= label.getLabelName("L_sourcetype ") %></td>
          <td class="title_center"><%= label.getLabelName("L_skuopen") %></td>
          <td class="title_center"><%= label.getLabelName("L_skugroupopen") %></td>
          <!--  
          <td class="title_center"><%= label.getLabelName("L_CategoryOpen") %></td>
          <td class="title_center"><%= label.getLabelName("L_BrandOpen") %></td>
          <td class="title_center"><%= label.getLabelName("L_CptOpen") %></td>
          <td class="title_center"><%= label.getLabelName("L_CustomerOpen") %></td>
          <td class="title_center"><%= label.getLabelName("L_DoctorOpen") %></td>
          <td class="title_center"><%= label.getLabelName("L_ispresentation") %></td>
		  <td class="title_center"><%= label.getLabelName("L_NeedMobile") %></td>-->
		  <td class="title_center"><%= label.getLabelName("L_RelatedProcessAction") %></td>
		  
        </tr>
        <%int i=0; %>
            <%
                        Vector totalsummary = (Vector) pageContext.getAttribute("totalsummary");
                        if (totalsummary == null)
                            totalsummary = new Vector();
                       Vector actionsourcecollection = (Vector) pageContext.getAttribute("actionsourcecollection");
                        if (actionsourcecollection == null)
                            actionsourcecollection = new Vector();
                            boolean bHasChecked = false;
                             String strClassType = new String("");
                             
                             
                             
               %>
	 <logic:iterate id="actionhash" collection="<%=totalsummary%>" indexId="orderid">
	 <%
	 HashMap oneDetail = (HashMap)pageContext.getAttribute("actionhash"); 
	 //String  needreq =  (String)oneDetail.get("needreq");
	 String  needfeedback =  (String)oneDetail.get("needfeedback");
	 String strIsChecked ="";
	 		            if(i%2 == 1)
            {
              strClassType = "td-listrom";
            }else{
              strClassType = "none";
            }
	      if(!bHasChecked)
            {
              strIsChecked = "checked";
              bHasChecked = true; %>
         <input type="hidden" name="chooseactionid"  id="chooseactionid" value="<custom:write property="visitprocessactionid" name="actionhash" nbsp="true"/>">
          <input type="hidden" name="chooseindexnum"  id="chooseindexnum" value="<%=JspHelper.filterNull(i+1)%>">
            <%   }
              i++; 
	 %>
	 <tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull(strClassType)%>'"  onClick="javascript:radiotrue('action<%=JspHelper.filterNull(i)%>');clickProd('<custom:write property="visitprocessactionid" name="actionhash"/>','<%=JspHelper.filterNull(i)%>');" class="<%=JspHelper.filterNull( strClassType )%>" >
	 <td>
	 <input id="action<%=JspHelper.filterNull(i)%>" type="radio"  name="visitprocessactionid" value="<custom:write property="visitprocessactionid" name="actionhash"/>" 
	 onClick="javascript:clickProd('<custom:write property="visitprocessactionid" name="actionhash" nbsp="true"/>','<%=JspHelper.filterNull(i)%>')" Class="normalradio" <%=strIsChecked%>/>
	 </td>
	 <td><custom:write property="actioncode" name="actionhash" nbsp="true" /></td>
	 <td class="title_center"  onclick="editModeText(this,'<%=i%>','actionname','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="actionname" name="actionhash" nbsp="true" /></td>
	 <td><custom:write property="description" name="actionhash" nbsp="true" /></td>
	 <%
	 if("Y".equals(needfeedback)){
	 %>
	 <td class="title_center" onclick="editMode(this,'<%=i%>','needreq','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="needreq" name="actionhash" nbsp="true" /></td>
	 <%}else{%>
	  <td class="title_center" ><custom:write property="needreq" name="actionhash" nbsp="true" /></td>
	 <%}%>
	 <td class="title_center"><custom:write property="needfeedback" name="actionhash" nbsp="true" /></td>
	 <td><custom:write property="valuename" name="actionhash" nbsp="true" /></td>
	 <td><custom:write property="sourcetypedesc" name="actionhash" nbsp="true" /></td>
	<%
	 if("Y".equals(needfeedback)){
	%>
	 <td class="title_center" onclick="editMode(this,'<%=i%>','needsku','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="needsku" name="actionhash" nbsp="true" /></td>
	 <!-- 
	 <td class="title_center" onclick="editMode(this,'<%=i%>','needcategory','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="needcategory" name="actionhash" nbsp="true" /></td>
	 <td class="title_center" onclick="editMode(this,'<%=i%>','needbrand','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="needbrand" name="actionhash" nbsp="true" /></td>
	 <td class="title_center" onclick="editMode(this,'<%=i%>','needcpt','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="needcpt" name="actionhash" nbsp="true" /></td>
	 <td class="title_center" onclick="editMode(this,'<%=i%>','needcustomer','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="needcustomer" name="actionhash" nbsp="true" /></td>
	 <td class="title_center" onclick="editMode(this,'<%=i%>','needdoctor','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="needdoctor" name="actionhash" nbsp="true" /></td>
	 <td class="title_center" onclick="editMode(this,'<%=i%>','needsubmit','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="needsubmit" name="actionhash" nbsp="true" /></td>
	 <td class="title_center" onclick="editMode(this,'<%=i%>','needmobile','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="needmobile" name="actionhash" nbsp="true" /></td>
	 -->
	<%}else{%>
	 <td class="title_center" ><custom:write property="needsku" name="actionhash" nbsp="true" /></td>
	 <!--  <td class="title_center"><custom:write property="needcategory" name="actionhash" nbsp="true" /></td>
	 <td class="title_center"><custom:write property="needbrand" name="actionhash" nbsp="true" /></td>
	 <td class="title_center"><custom:write property="needcpt" name="actionhash" nbsp="true" /></td>
	 <td class="title_center"><custom:write property="needcustomer" name="actionhash" nbsp="true" /></td>
	 <td class="title_center"><custom:write property="needdoctor" name="actionhash" nbsp="true" /></td>
	 <td class="title_center" ><custom:write property="needsubmit" name="actionhash" nbsp="true" /></td>
	 <td class="title_center"><custom:write property="needmobile" name="actionhash" nbsp="true" /></td>
	 -->
	<%}%>
	<%
	 if("Y".equals(needfeedback)){
	%>
	 <td class="title_center" onclick="editMode(this,'<%=i%>','needskugroup','<custom:write name="actionhash" property="visitprocessactionid"/>');"><custom:write property="needskugroup" name="actionhash" nbsp="true" /></td>
	<%}else{%>
	 <td class="title_center" ><custom:write property="needskugroup" name="actionhash" nbsp="true" /></td>
	<%}%>
	 <!--     <td class="title_center"><custom:write property="relatedactioncode" name="actionhash" nbsp="true" /></td>-->
	 <td class="title_center"><custom:write property="relatedactioncode" name="actionhash" nbsp="true" /></td>
	 </tr>
	 </logic:iterate>
	 <tr>
	 <td>&nbsp;</td>
	 <td><input type="text" name="newactioncode" maxlength="12" style="width:100"/>&nbsp;<font color="red"><%= label.getLabelName("L_Asterisk") %></font></td>
	 <td><input type="text" name="newactionname" maxlength="16" style="width:100"/>&nbsp;<font color="red"><%= label.getLabelName("L_Asterisk") %></font></td>
	 <td><input type="text" name="newdescription" maxlength="64" style="width:98%"/></td>
	 <td class="title_center">
	 <input type="checkbox" Class="normalradio" name="newneedreqbox"  onclick="openBll(this);"/>
	 <custom:hidden property="newneedreq"/>
	 </td>
	 <td class="title_center"><input type="checkbox" Class="normalradio" name="newneedfeedback" value="Y" onclick="openAll(this);"/></td>
	 <td><custom:selectdic property="newfeedbacktype"  dictType="FeedBackContentType"   defaultValue="--------"   style="width:98%" disabled="true" onclick="openActionsource();"  onchange="openNeedSubmit();"  valueCriteria="1-8"/></td>
	 <td>
	 <custom:select defaultValue="--------" property="newsourcetype" optionsName="actionsourcecollection" optionValueKey="type" optionInnerTextKey="description" style="width:98%" disabled="true"/>
	 </td>
	 <td class="title_center"><input type="checkbox" Class="normalradio" name="newneedsku" value="Y" onclick="openNeedSubmit();" disabled/></td>
	 <td class="title_center"><input type="checkbox" Class="normalradio" name="newneedskugroup" value="Y" onclick="openNeedSubmit();" disabled/></td>
     <!--
     <td>
	   <custom:select defaultValue="--------" property="newrelatedactionid" optionsName="totalsummary" optionValueKey="visitprocessactionid" optionInnerTextKey="actioncode" style="width:98%" disabled="true"/>
	 </td>	 
     
	 <td class="title_center"><input type="checkbox" Class="normalradio" name="newneedcategory" value="Y" onclick="openNeedSubmit();" disabled/></td>
	 <td class="title_center"><input type="checkbox" Class="normalradio" name="newneedbrand" value="Y" onclick="openNeedSubmit();" disabled/></td>
	 <td class="title_center"><input type="checkbox" Class="normalradio" name="newneedcpt" value="Y" onclick="openNeedSubmit();" disabled/></td>
	 <td class="title_center"><input type="checkbox" Class="normalradio" name="newneedcustomer" value="Y" onclick="openNeedSubmit();" disabled/></td>
	 <td class="title_center"><input type="checkbox" Class="normalradio" name="newneeddoctor" value="Y" onclick="openNeedSubmit();" disabled/></td>
	 <td class="title_center"><input type="checkbox" Class="normalradio" name="newneedsubmit" value="Y" disabled/></td>
	 <td class="title_center"><input type="checkbox" Class="normalradio" name="newneedmobile" value="Y"/></td>
	
	 
	  -->
	  <td><custom:select defaultValue="--------" property="newrelatedactionid" optionsName="relatedactions" optionValueKey="visitprocessactionid" optionInnerTextKey="actioncode" style="width:98%" disabled="true"/></td>
	 </tr>
	          <%@ include file="/inc/SummaryAction.inc" %>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="summary_top" ></td>
        </tr>
        <tr>
          <td class="td_center">
          <input type="hidden" name="neworgid" value="<%=neworgid%>">
          <input type="hidden" name="newvisitprocessactionid">
          <a onclick="page_add();"><custom:button type="1" label="L_Add" imgsrc="new.gif" border="0" style="width:60"/></a>
          <a onclick="page_delete()"><custom:button type="1" label="L_Delete" imgsrc="delete.gif" border="0" style="width:60"/></a>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
 </form>
</body>
</html>